﻿public class UIMenuItem : AbstractButton {
	// === Public =====================================================================================================
	public UIMenuItem(IButtonAction action, string text = null) {
		Init(action, text);
	}

	// === Private ====================================================================================================
	private void Init(IButtonAction action, string text) {
		SetName(GetType().ToString());
		SetLocation(0, 0);
		SetSize(80, 30);
		SetText(text);
		ButtonAction = action;
		UpdateStyle();
	}
}
